<{include file = '../include/user_header.html'}>

<h3>基本信息</h3>
<table class="layout-table">
	<tr>
		<td width="30%"></td>
		<td width="60%"></td>
	</tr>
	<tr>
		<td>用户名：<span color="<{$user.group.font_color}>"><{$user.username}></span></td>
		<td>注册时间：<span color="black"><{_date($user.time)}></span></td>
	</tr>
	<tr>
		<td>用户ID：<span color="black"><{$user.uid}></span></td>
		<td rowspan="2">自我介绍：<span color="black"><{$user.description}></span></td>
	</tr>
	<tr>
		<td>用户组：<span class="badge text-white" bgcolor="<{$user.group.color}>"><{$user.group.name}></span></td>
	</tr>
</table>
<hr>
<h3>仪表盘</h3>
<div class="dashboard row">
		<div class="item threads col-sm-5 col-lg">
			<div class="icon">
				<i class="fa fa-cube"></i>
			</div>
			<div class="number">
				<{$user.threads}>
				<span><{$name}>的主题</span>
			</div>
			<div class="more">
				<a href="<{url('user','threads',$p_0,1)}>">查看更多<i class="fa fa-arrow-circle-right"></i></a>
			</div>
		</div>
		<div class="item praises col-sm-5 col-lg">
			<div class="icon">
				<i class="fa fa-thumbs-up"></i>
			</div>
			<div class="number">
				<{$user.praises}>
				<span><{$name}>的点赞</span>
			</div>
			<div class="more">
				<a href="<{url('user','praises',$p_0,1)}>">查看更多<i class="fa fa-arrow-circle-right"></i></a>
			</div>
		</div>
		<div class="item point col-sm-5 col-lg">
			<div class="icon">
				<i class="fa fa-map"></i>
			</div>
			<div class="number">
				<{$user.point}>
				<span><{C('point_name')}></span>
			</div>
			<div class="more">
				<a href="<{url('user','rewards',$p_0,1)}>">打赏记录<i class="fa fa-arrow-circle-right"></i></a>
			</div>
		</div>
		<div class="item comments col-sm-5 col-lg">
			<div class="icon">
				<i class="fa fa-comments"></i>
			</div>
			<div class="number">
				<{$user.comments}>
				<span><{$name}>的评论</span>
			</div>
			<div class="more">
				<a href="<{url('user','comments',$p_0,1)}>">查看更多<i class="fa fa-arrow-circle-right"></i></a>
			</div>
		</div>
</div>
<{if $user.uid == UID}>
<hr>
<h3>快捷导航</h3>
<nav class="navbar navbar-expand-sm bg-light">
	<ul class="navbar-nav">
		<li class="nav-item">
			<a class="nav-link" href="<{url('index','index')}>">网站首页</a>
		</li>
		<li class="nav-item">
			<a class="nav-link" href="<{url('user','message',0,1)}>">消息中心</a>
		</li>
		<li class="nav-item">
			<a class="nav-link" href="<{url('user','setting',0)}>">修改资料</a>
		</li>
		<li class="nav-item">
			<a class="nav-link" href="<{url('user','exit')}>">退出登录</a>
		</li>
	</ul>
</nav>
<{/if}>

<{include file = '../include/user_footer.html'}>